package com.tql.pandian.entity.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Optional;

@Data
public class CaseStapAndMaterialTransUnit {
    /**
     * select cs.stap_code,cs.stap_name,cs.stap_type_code,cs.stap_type_name,
     * tu.FConvertDenominator,
     * tu.FCurrentUnitIdFName,
     * tu.FCurrentUnitIdFNumber,
     * tu.FConvertNumerator,
     * tu.FDestUnitIdfnumber,
     * tu.FDestUnitIdfname,
     * tu.FMaterialIdFspecification
     *  from tql_pandian_case_stap cs
     * left join tql_material_trans_unit tu on cs.stap_code=tu.FMaterialIdfnumber
     * where cs.case_id=60
     */

    private String id;
    private String stapCode;
    private String stapName;
    private String stapTypeName;
    private String stapTypeCode;
    private String semiType;
    private String FConvertDenominator;
    private String FCurrentUnitIdFName;
    private String FCurrentUnitIdFNumber;
    private String FConvertNumerator;
    private String FDestUnitIdfnumber;
    private String FDestUnitIdfname;
    private String FMaterialIdFspecification;
    private String stapBaseUnit;
    private String  stapAuxUnit;
    private String  caseUnit;
    private BigDecimal caseAmount;
    private BigDecimal stapAmout;
    private Integer flag;

    public static void main(String[] args) {
//        CaseStapAndMaterialTransUnit cs=new CaseStapAndMaterialTransUnit();
//        cs.setCaseUnit(Optional.ofNullable(null).orElse("null"));
//        System.out.println(cs.getCaseUnit());
    }
}
